<?php

namespace App\Models\SubmitForm;

use App\Models\BaseModel;

/**
 * 提交表单模型层
 *
 * Class SubmitForm
 * @package App\Models\SubmitForm
 */
class SubmitForm extends BaseModel
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'submitform';

    /**
     * Indicates if the model should be timestamped.
     * @var bool
     */
    public $timestamps = false;
    public function setUserInfoAttribute($value)
    {
        return json_encode($value);
    }

    public function getUserInfoAttribute($value)
    {
        return json_decode($value);
    }

    public function setFormContentAttribute($value)
    {
        return json_encode($value);
    }

    public function getFormContentAttribute($value)
    {
        return json_decode($value);
    }
}
